package com.KsbaoTest;

import org.openqa.selenium.chrome.ChromeDriver;

import java.util.concurrent.TimeUnit;


public class SetUp {

    private ChromeDriver driver;

    public void Up() throws InterruptedException {

        System.setProperty("webdriver.chrome.driver", "src/main/resources/chromedriver.exe");
        //打开浏览器
        driver = new ChromeDriver();
        driver.manage().window().maximize();
//      driver.get("http://smp-test.yingedu.com/");
        driver.get("https://www.baidu.com/");
        driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
    }
}
